<html>
<head>
<title>Commands help</title>
</head>

<body>
<center><h1>Commands</h1></center>

Note: Each line should contain only one command.
<br>
<br>
<hr/>
<b>clear</b>
<p>Clears the canvas and brings the pen back to the center position.</p>
<hr/>
<b>forward x</b>
<p>forward x command draws a line of length x units in the direction in which it is pointing. It is not necessary that <br>
the line should be vertical or horizontal. </p>
<hr/>
<b>backward x</b>
<p>backward x does the same function as forward but in the oppsosite direction</p>
<hr/>
<b>repeat x<br>
{<br>
&nbsp;    ..<br>
}</b>
<p>Repeats the code inside the brackets, x number of times.</p>
<hr/>
<b>canvascolor x y z</b>
<p> canvascolor x y z assigns the color to the canvas. x,y,z are respective rgb values</p>
<hr/>
<b>canvassize x y  </b>
<p> It assigns the size to canvas. Avoid assigning size more than 600 600 as it may meddle with the other components of the page</p>
<hr/>
<b>pencolor x y z</b>
<p>It assigns the color to the pen's ink. x, y, z are the respective rgb values</p>
<hr/>
<b>penwidth x  </b> 
<p> Assigns the width (i.e. thickness) of the pen</p>
<hr/>
<b>turnleft a</b>
<p>Changes the angle property of the pointer (i.e) it changes the orientation. It turns the direction of pen a degrees anti-clockwise</p>
<hr/>
<b>turnright a</b>
<p>Changes the angle property of the pointer (i.e) it changes the orientation. It turns the direction of pen  a clockwise </p>
<hr/>
<b>direction a</b>
<p>Sets the angle of pen to a</p>
<hr/>
<b>center</b>
<p>Brings the pen back to the center of the canvas</p>
<hr/>
<b>go x y </b>
<p> go x y makes the pointer move to postion x, y without drawing a line on the canvas<p>
<hr/>
<b>go x</b>
<p> go x makes the pointer move to given x coordinate without altering its y coordinate</p>
<hr/>
<b>go y</b>
<p> go y makes the pointer move to given y coordinate without altering its x coordinate</p>
<hr/>
<b>top x/down x/left x/right x</b>
<p>Draws a line in corresponding direction by x units. Ex right 100 draws a line 100 units right irrespective of the pen angle</p>
<hr/>
</body>

</html>

